﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BZOrderPrint.DAL
{
    public class AppEnum
    {
        public enum  ShopType
        {
            /// <summary>
            /// 直营店
            /// </summary>
            [Description("直营店")]
            Directly = 0,

            /// <summary>
            /// 加盟店
            /// </summary>
            [Description("加盟店")]
            Join = 1,

            /// <summary>
            /// 驿站
            /// </summary>
            [Description("驿站")]
            Post = 2
        }

        public enum OrderStatus
        {
            /// <summary>
            /// 待接单
            /// </summary>
            [Description("待接单")]
            WaitOrders = 0,

            /// <summary>
            /// 待发货
            /// </summary>
            [Description("待发货")]
            WaitShip = 1 << 0,

            /// <summary>
            /// 已送货
            /// </summary>
            [Description("已送货")]
            Delivered = 1 << 1,

            /// <summary>
            /// 已作废
            /// </summary>
            [Description("已作废")]
            Abolished = 1 << 2,

            /// <summary>
            /// 已完成
            /// </summary>
            [Description("已完成")]
            Completed = 1 << 3,
        }

        public enum OrderType
        {
            /// <summary>
            /// 小程序自提
            /// </summary>
            [Description("小程序自提")]
            MiniProgramPickup = 0,

            /// <summary>
            /// 小程序外卖
            /// </summary>
            [Description("小程序外卖")]
            MiniProgramTakeaway = 1 << 0,

            /// <summary>
            /// 美团外卖
            /// </summary>
            [Description("美团外卖")]
            Meituan = 1 << 1,

            /// <summary>
            /// 饿了么
            /// </summary>
            [Description("饿了么")]
            Eleme = 1 << 2,

            /// <summary>
            /// 百度
            /// </summary>
            [Description("百度")]
            Baidu = 1 << 3,

            /// <summary>
            /// 口碑
            /// </summary>
            [Description("口碑")]
            Koubei = 1 << 4,

            /// <summary>
            /// 平台
            /// </summary>
            [Description("平台")]
            Pingtai = 1 << 5,

            /// <summary>
            /// 食堂
            /// </summary>
            [Description("食堂")]
            Shitang = 1 << 6,

            /// <summary>
            /// 饿百
            /// </summary>
            [Description("饿百")]
            Ebai = 1 << 7,

            /// <summary>
            /// 自营
            /// </summary>
            [Description("自营")]
            SelfSupport = 1 << 8,
        }

        public enum PayType
        {
            /// <summary>
            /// 微信支付
            /// </summary>
            [Description("微信支付")]
            WeChat = 0,

            /// <summary>
            /// 到店支付
            /// </summary>
            [Description("到店支付")]
            PayInStore = 1 << 0,

            /// <summary>
            /// 会员余额
            /// </summary>
            [Description("会员余额")]
            MemberBalance = 1 << 1,
        }

        public enum ShipMethodType
        {
            /// <summary>
            /// 自提
            /// </summary>
            [Description("自提")]
            Self = 0,

            /// <summary>
            /// 配送
            /// </summary>
            [Description("配送")]
            ShipTo = 1 << 0,

        }

        public enum GroupType
        {
            /// <summary>
            /// 网点订单
            /// </summary>
            [Description("网点订单")]
            ShopOrder = 0,

            /// <summary>
            /// 团购订单
            /// </summary>
            [Description("团购订单")]
            TeamOrder = 1,

        }
    }
}
